VMaxNavII Applet

Hides tonns of links in a small applet, Save space on your page and make it easy to navigate. It's an easy way to maintain your site using a virtual tree structure. And, yes, it's ... Absolutely Free Free version will add link back to my pages at the end of the menu.

See this applet in action in the control frame of the frameset.

Applet Usage Example

<APPLET CODE="vmaxnavii.class" WIDTH=200 HEIGHT=400>
<PARAM NAME="AUTHOR"       VALUE="Virtual_Max (http://come.to/vmax)">
<PARAM NAME="KEY">         VALUE="FREE VERSION"
<PARAM NAME="DELAY"        VALUE="50">
<PARAM NAME="STEP"         VALUE="8"> 
<PARAM NAME="URL"          VALUE="vmaxnavii.txt">
<PARAM NAME="LEVELXOFFSET" VALUE="25">
<PARAM NAME="TEXTCOLOR"    VALUE="c0c080">
<PARAM NAME="ACTIVECOLOR"  VALUE="00ffff">
<PARAM NAME="BGCOLOR"      VALUE="000000">
<!--PARAM NAME="ALIGN"        VALUE="RIGHT"-->
<PARAM NAME="IMAGE0"       VALUE="vmaxnavup.gif">
<PARAM NAME="IMAGE1"       VALUE="vmaxnavright.gif">
<PARAM NAME="IMAGE2"       VALUE="vmaxnavdown.gif">
<PARAM NAME="IMAGE3"       VALUE="vmaxnavleft.gif">
<PARAM NAME="IMAGE4"       VALUE="vmaxnavbg0.gif">
<PARAM NAME="IMAGE5"       VALUE="vmaxnavbg1.gif">
<PARAM NAME="IMAGE6"       VALUE="vmaxnavromb.gif">
<PARAM NAME="IMAGE7"       VALUE="vmaxnavround.gif">
<PARAM NAME="IMAGE8"       VALUE="vmaxnavroundred.gif">
<PARAM NAME="IMAGE9"       VALUE="vmaxnavapplets.gif">
<PARAM NAME="IMAGE10"      VALUE="vmaxnavscripts.gif">
<PARAM NAME="IMAGE11"      VALUE="vmaxnavbetween.gif">
<PARAM NAME="IMAGE12"      VALUE="vmaxnavfaqs.gif">
<PARAM NAME="IMAGE13"      VALUE="vmaxnavbg3.gif">
<PARAM NAME="IMAGE14"      VALUE="vmaxnavbg4.gif">

<PARAM NAME="USESCHEMES"   VALUE="true">
<PARAM NAME="SCHEME0"      VALUE="9 |1 |3 |2 |0  |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME1"      VALUE="4 |1 |3 |2 |0  |Dialog,1,14 |ffff80 |00ffff">
<PARAM NAME="SCHEME2"      VALUE="5 |7 |6 |8 |3  |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME3"      VALUE="13|7 |  |8 |   |Dialog,1,10 |808080 |00ff00">
<PARAM NAME="SCHEME4"      VALUE="5 |7 |6 |8 |3  |Dialog,1,12 |80c0c0 |00ffff">
<PARAM NAME="SCHEME5"      VALUE="5 |7 |6 |8 |3  |Dialog,1,12 |c080c0 |00ffff">
<PARAM NAME="SCHEME6"      VALUE="5 |7 |6 |8 |3  |Dialog,1,12 |80c080 |00ffff">
<PARAM NAME="SCHEME7"      VALUE="5 |7 |6 |8 |3  |Dialog,1,12 |c08080 |00ffff">
<PARAM NAME="SCHEME8"      VALUE="10|1 |3 |2 |0  |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME9"      VALUE="4 |1 |3 |2 |0  |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME10"     VALUE="5 |7 |  |8 |   |Dialog,1,12 |c08080 |00ffff">
<PARAM NAME="SCHEME11"     VALUE="4 |7 |  |8 |   |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME12"     VALUE="11|1 |3 |2 |0  |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME13"     VALUE="4 |7 |  |8 |   |Dialog,1,12 |c08080 |00ffff">
<PARAM NAME="SCHEME14"     VALUE="12|1 |3 |2 |0  |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME15"     VALUE="4 |7 |  |8 |   |Dialog,1,12 |80c080 |00ffff">
<PARAM NAME="SCHEME16"     VALUE="14|7 |  |8 |   |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME17"     VALUE="14|1 |3 |2 |0  |Dialog,1,12 |c0c080 |00ffff">

</APPLET>
Parameter Description
AUTHOR "Virtual_Max (http://come.to/vmax)" 
Obligatory parameter
KEY "Free Version" 
Obligatory parameter Free Version will always add a link back to my pages. Please, follow the registration instructions if you want to get rid of this..
TEXTCOLOR
ACTIVECOLOR
TEXTCOLOR
All Colors are in hexadecimal format 'rrggbb', same as HTML colors format but without the # hexadecimal radix symbol. For example, for red color use: FF0000.
DELAY
STEP
Scrolling step in pixels and animation frame delay time.
LEVELXOFFSET Level offset in pixels (recommended to have this value equal to icons width)
ALIGN Optional, parameter if defined as RIGHT tree will be right oriented. If omitted or defined as any other, tree will be left oriented.
URL URL of the menu file structure, 
Applet will fetch out menu structure in different ways depending on the file extension.

For TEXT file with .txt extension
Each line of this file is responsible for one menu item in the applet. Number of spaces from the beginning of the line to ">" character corresponds to depth level of menu item. After this follows four fields separated by "|" symbol,
MenuItemText | url | targetframename | appearanceSchemeName
Complete version of vmaxnavii.txt for curious people

For use with HTML file some extra HTML code required.
One can take a look into the HTML source of my vmaxnavii3.html file to understand better explanations below.

IMAGE0..
IMAGEn
Enumerated images for use with this applet, Enumeration should starts with 0 and have no missed numbers.
USESCHEMES Obligatory parameter, do not change it.
SCHEME0..
SCHEMEn
 
Any other Schemes names can be used, but take care not to interfere with other parameters' names, I used numbered names, but one can use more self explaining names for various schemes. Each scheme value includes following fields separated by "|" character
  • ItemBackgroundImage #
  • Closed passive state overlay icon #
  • Opened passive state icon #
  • Closed highlight icon #
  • Opened highlight icon #
  • Font Settings including Fontname, FontStyle,FontSize
  • Passive state text color
  • Highlight state text color
  • DEBUG This parameter is for the debug state only, If this parameter appears among parameters passed to applet, Applet will print menu structure parsing the results to the Java Console. Its value can be anything. This one is useful to debug menu structure in case of some problems. Don't forget to remove this parameter before on-line placing.

    Here is a truncated example of a menu structure TEXT file:

    Menu Item and level ptr  URL(full or relative)   targetframe  Scheme#
    ---------------------------------------------------------------------
    First Item Missing text title, it use specific image instead.
    >                       |defaultjava.html        |mainwindow   |SCHEME0
     >Text Tools            |                        |             |SCHEME1
      >VMaxTicker           |vmaxticker.html         |mainwindow   |SCHEME2
      >VMaxTickerFile       |vmaxtickerfile.html     |mainwindow   |SCHEME2
       >Download            |license.html            |mainwindow   |SCHEME3
     >Buttons and Menu      |                        |             |SCHEME1 
      >VMaxButtons          |vmaxbuttons_lite.html   |mainwindow   |SCHEME4
      >MenuButtons          |menubutton.html         |mainwindow   |SCHEME4 
     >Image and Effects     |                        |             |SCHEME1 
      >ImageWave            |imagewave.html          |mainwindow   |SCHEME5
      >ImageWaveMap         |imagewavemap.html       |mainwindow   |SCHEME5
    Here again Item which use image  
    >                       |defaultscript.html      |mainwindow   |SCHEME8
     >Cut'n'paste scripts   |                        |             |SCHEME9 
      >Cookie functions     |cookie.html             |mainwindow   |SCHEME10
      >Sounding links       |soundlink.html          |mainwindow   |SCHEME10 
     >Tips & Tricks         |javascripttricks.html   |mainwindow   |SCHEME11 
    Here is 'normal' Items on the root level of menu  
    >Links for Developers   |javalinks.html          |mainwindow   |SCHEME16
    >Feedback Loop          |                        |             |SCHEME17
     >Guestbook             |geobook.html            |mainwindow   |SCHEME11
     >Email                 |email.html              |mainwindow   |SCHEME11
    

    How to use the HTML parsing feature

    Probably one would like to use HTML syntax to reduce the site maintenance work. Webmasters can create a site map HTML file which can also serve as menu source file for this applet. The applet recognizes .htm and html extensions, in this case the applet would search through the HTML code for special tags and use these tags to build a menu structure. Any existing HTML tag can be added to the menu if this tag contains 'magic' word VMAXNAV inside

    For example:
    <A HREF="some.html" TARGET="mywindow" VMAXNAV="0,SCHEME0">Some Text here</A>

    When the applet meets a tag containing VMAXNAV between <  and  > it makes an attempt to fetch out values of HREF field for this tag, TARGET of this tag and value for VMAXNAV.
    First it will be used as menu item link url, as well as a target will work as a target frame or window name. If the TARGET omitted the '_self' value will be used as the default.
    VMAXNAV value contains two obligatory fields: number of level and scheme name to be used for this menu item. The third field is optional and can be omitted or equal to 'notext'. Last one, if used , informs applet that background image in the scheme already has the complete information, and no text title should be added to menu item. The example link below will be added to the applet menu at the first sub level with empty text.
    Example:

    <A HREF="some.html" TARGET="mywindow" VMAXNAV="1,SCHEME0,notext"> .....

    Now one can ask me, where will the applet get the text for menu item, if any required. Answer is easy, It will take all of the text after this tag end before the beginning of next HTML tag.
    Example:

    <A HREF="some.html" TARGET="mywindow" VMAXNAV="3,SCHEME0">This Text will be added<BR>And this wouldn't</A>

    All above examples use <A  ... > tag. But one can use any other HTML tag.  If one wants to add folder to menu which shouldn't be linked to any document headlines tags (H1, H2 ...) can be used or even FONT tag.
    Example:

    <FONT SIZE=+1 VMAXNAV="0,SHEME3">Folder Name</FONT>

    In this case there will be no document linked to the menu item and so no need in target frame for a name. Font size doesn't matter, only VMAXNAV value will play role, and text before next '<' character.

    Curious one can look inside  vmaxnavii3.html HTML source as an example.